LineGraphType

A line graph. Given points produces all points upon the line.

Does not support decimal (float) points.

Could be rather useful for Devisualization.Image filters perhaps?

Constructors

this
this(TYPE startx, TYPE starty)

Initiate with starting point Acts as a lineTo

Members

Functions

apply
void apply(void delegate(TYPE x, TYPE y, float weighting) del, size_t step)

Get all points upon the line Includes weighting for the point. Ranges from 0f .. 1f

apply
void apply(void delegate(TYPE x, TYPE y) del, size_t step)

Get all points upon the line

bezierCurveTo
void bezierCurveTo(TYPE x, TYPE y, TYPE[] xPoints, TYPE[] yPoints)

Adds a bezier curve.

bezierCurveTo
void bezierCurveTo(TYPE x, TYPE y, TYPE x2, TYPE y2)

Adds a bezier curve.

lineTo
void lineTo(TYPE x, TYPE y)

Adds a straight line.

pointAt
void pointAt(TYPE x, TYPE y)

Adds a posize_t line.

splineThrough
void splineThrough(TYPE x, TYPE y, TYPE x2, TYPE y2, float tension)

Adds a bezeier curve using points to derive the control points

Meta